﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace CampWeek5__Book_Project_.Models
{
    public class AuthorVM
    {
        public int Id { get; set; }
        [Display(Name = "Author Full Name")]
        public string AuthorName { get; set; }
        [Display(Name = "Date of Birth")]
        public DateTime DateOfBirth { get; set; }
        [Display(Name = "Date of Death (if applicable)")]
        public DateTime? DateOfDeath { get; set; }
        [Display(Name = "Country of Residence")]
        public string AuthorCountry { get; set; }
        [Display(Name = "url for image of Author")]
        public string AuthorImg { get; set; }
        [Display(Name = "Brief Biography")]
        public string AuthorBio { get; set; }
        public int TimesViewed { get; set; }
        public DateTime? DateDeleted { get; set; }
        [Display(Name = "Genres")]
        public List<string> Tags { get; set; }
        public List<BookVM> Books { get; set; }
    }
}